package com.hydl.power.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AlarmRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AlarmRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPowerroomidIsNull() {
            addCriterion("powerRoomId is null");
            return (Criteria) this;
        }

        public Criteria andPowerroomidIsNotNull() {
            addCriterion("powerRoomId is not null");
            return (Criteria) this;
        }

        public Criteria andPowerroomidEqualTo(String value) {
            addCriterion("powerRoomId =", value, "powerroomid");
            return (Criteria) this;
        }

        public Criteria andPowerroomidNotEqualTo(String value) {
            addCriterion("powerRoomId <>", value, "powerroomid");
            return (Criteria) this;
        }

        public Criteria andPowerroomidGreaterThan(String value) {
            addCriterion("powerRoomId >", value, "powerroomid");
            return (Criteria) this;
        }

        public Criteria andPowerroomidGreaterThanOrEqualTo(String value) {
            addCriterion("powerRoomId >=", value, "powerroomid");
            return (Criteria) this;
        }

        public Criteria andPowerroomidLessThan(String value) {
            addCriterion("powerRoomId <", value, "powerroomid");
            return (Criteria) this;
        }

        public Criteria andPowerroomidLessThanOrEqualTo(String value) {
            addCriterion("powerRoomId <=", value, "powerroomid");
            return (Criteria) this;
        }

        public Criteria andPowerroomidLike(String value) {
            addCriterion("powerRoomId like", value, "powerroomid");
            return (Criteria) this;
        }

        public Criteria andPowerroomidNotLike(String value) {
            addCriterion("powerRoomId not like", value, "powerroomid");
            return (Criteria) this;
        }

        public Criteria andPowerroomidIn(List<String> values) {
            addCriterion("powerRoomId in", values, "powerroomid");
            return (Criteria) this;
        }

        public Criteria andPowerroomidNotIn(List<String> values) {
            addCriterion("powerRoomId not in", values, "powerroomid");
            return (Criteria) this;
        }

        public Criteria andPowerroomidBetween(String value1, String value2) {
            addCriterion("powerRoomId between", value1, value2, "powerroomid");
            return (Criteria) this;
        }

        public Criteria andPowerroomidNotBetween(String value1, String value2) {
            addCriterion("powerRoomId not between", value1, value2, "powerroomid");
            return (Criteria) this;
        }

        public Criteria andPowerroomIsNull() {
            addCriterion("powerRoom is null");
            return (Criteria) this;
        }

        public Criteria andPowerroomIsNotNull() {
            addCriterion("powerRoom is not null");
            return (Criteria) this;
        }

        public Criteria andPowerroomEqualTo(String value) {
            addCriterion("powerRoom =", value, "powerroom");
            return (Criteria) this;
        }

        public Criteria andPowerroomNotEqualTo(String value) {
            addCriterion("powerRoom <>", value, "powerroom");
            return (Criteria) this;
        }

        public Criteria andPowerroomGreaterThan(String value) {
            addCriterion("powerRoom >", value, "powerroom");
            return (Criteria) this;
        }

        public Criteria andPowerroomGreaterThanOrEqualTo(String value) {
            addCriterion("powerRoom >=", value, "powerroom");
            return (Criteria) this;
        }

        public Criteria andPowerroomLessThan(String value) {
            addCriterion("powerRoom <", value, "powerroom");
            return (Criteria) this;
        }

        public Criteria andPowerroomLessThanOrEqualTo(String value) {
            addCriterion("powerRoom <=", value, "powerroom");
            return (Criteria) this;
        }

        public Criteria andPowerroomLike(String value) {
            addCriterion("powerRoom like", value, "powerroom");
            return (Criteria) this;
        }

        public Criteria andPowerroomNotLike(String value) {
            addCriterion("powerRoom not like", value, "powerroom");
            return (Criteria) this;
        }

        public Criteria andPowerroomIn(List<String> values) {
            addCriterion("powerRoom in", values, "powerroom");
            return (Criteria) this;
        }

        public Criteria andPowerroomNotIn(List<String> values) {
            addCriterion("powerRoom not in", values, "powerroom");
            return (Criteria) this;
        }

        public Criteria andPowerroomBetween(String value1, String value2) {
            addCriterion("powerRoom between", value1, value2, "powerroom");
            return (Criteria) this;
        }

        public Criteria andPowerroomNotBetween(String value1, String value2) {
            addCriterion("powerRoom not between", value1, value2, "powerroom");
            return (Criteria) this;
        }

        public Criteria andDeviceidIsNull() {
            addCriterion("deviceId is null");
            return (Criteria) this;
        }

        public Criteria andDeviceidIsNotNull() {
            addCriterion("deviceId is not null");
            return (Criteria) this;
        }

        public Criteria andDeviceidEqualTo(String value) {
            addCriterion("deviceId =", value, "deviceid");
            return (Criteria) this;
        }

        public Criteria andDeviceidNotEqualTo(String value) {
            addCriterion("deviceId <>", value, "deviceid");
            return (Criteria) this;
        }

        public Criteria andDeviceidGreaterThan(String value) {
            addCriterion("deviceId >", value, "deviceid");
            return (Criteria) this;
        }

        public Criteria andDeviceidGreaterThanOrEqualTo(String value) {
            addCriterion("deviceId >=", value, "deviceid");
            return (Criteria) this;
        }

        public Criteria andDeviceidLessThan(String value) {
            addCriterion("deviceId <", value, "deviceid");
            return (Criteria) this;
        }

        public Criteria andDeviceidLessThanOrEqualTo(String value) {
            addCriterion("deviceId <=", value, "deviceid");
            return (Criteria) this;
        }

        public Criteria andDeviceidLike(String value) {
            addCriterion("deviceId like", value, "deviceid");
            return (Criteria) this;
        }

        public Criteria andDeviceidNotLike(String value) {
            addCriterion("deviceId not like", value, "deviceid");
            return (Criteria) this;
        }

        public Criteria andDeviceidIn(List<String> values) {
            addCriterion("deviceId in", values, "deviceid");
            return (Criteria) this;
        }

        public Criteria andDeviceidNotIn(List<String> values) {
            addCriterion("deviceId not in", values, "deviceid");
            return (Criteria) this;
        }

        public Criteria andDeviceidBetween(String value1, String value2) {
            addCriterion("deviceId between", value1, value2, "deviceid");
            return (Criteria) this;
        }

        public Criteria andDeviceidNotBetween(String value1, String value2) {
            addCriterion("deviceId not between", value1, value2, "deviceid");
            return (Criteria) this;
        }

        public Criteria andDevicenameIsNull() {
            addCriterion("deviceName is null");
            return (Criteria) this;
        }

        public Criteria andDevicenameIsNotNull() {
            addCriterion("deviceName is not null");
            return (Criteria) this;
        }

        public Criteria andDevicenameEqualTo(String value) {
            addCriterion("deviceName =", value, "devicename");
            return (Criteria) this;
        }

        public Criteria andDevicenameNotEqualTo(String value) {
            addCriterion("deviceName <>", value, "devicename");
            return (Criteria) this;
        }

        public Criteria andDevicenameGreaterThan(String value) {
            addCriterion("deviceName >", value, "devicename");
            return (Criteria) this;
        }

        public Criteria andDevicenameGreaterThanOrEqualTo(String value) {
            addCriterion("deviceName >=", value, "devicename");
            return (Criteria) this;
        }

        public Criteria andDevicenameLessThan(String value) {
            addCriterion("deviceName <", value, "devicename");
            return (Criteria) this;
        }

        public Criteria andDevicenameLessThanOrEqualTo(String value) {
            addCriterion("deviceName <=", value, "devicename");
            return (Criteria) this;
        }

        public Criteria andDevicenameLike(String value) {
            addCriterion("deviceName like", value, "devicename");
            return (Criteria) this;
        }

        public Criteria andDevicenameNotLike(String value) {
            addCriterion("deviceName not like", value, "devicename");
            return (Criteria) this;
        }

        public Criteria andDevicenameIn(List<String> values) {
            addCriterion("deviceName in", values, "devicename");
            return (Criteria) this;
        }

        public Criteria andDevicenameNotIn(List<String> values) {
            addCriterion("deviceName not in", values, "devicename");
            return (Criteria) this;
        }

        public Criteria andDevicenameBetween(String value1, String value2) {
            addCriterion("deviceName between", value1, value2, "devicename");
            return (Criteria) this;
        }

        public Criteria andDevicenameNotBetween(String value1, String value2) {
            addCriterion("deviceName not between", value1, value2, "devicename");
            return (Criteria) this;
        }

        public Criteria andDeviceaddressIsNull() {
            addCriterion("deviceAddress is null");
            return (Criteria) this;
        }

        public Criteria andDeviceaddressIsNotNull() {
            addCriterion("deviceAddress is not null");
            return (Criteria) this;
        }

        public Criteria andDeviceaddressEqualTo(String value) {
            addCriterion("deviceAddress =", value, "deviceaddress");
            return (Criteria) this;
        }

        public Criteria andDeviceaddressNotEqualTo(String value) {
            addCriterion("deviceAddress <>", value, "deviceaddress");
            return (Criteria) this;
        }

        public Criteria andDeviceaddressGreaterThan(String value) {
            addCriterion("deviceAddress >", value, "deviceaddress");
            return (Criteria) this;
        }

        public Criteria andDeviceaddressGreaterThanOrEqualTo(String value) {
            addCriterion("deviceAddress >=", value, "deviceaddress");
            return (Criteria) this;
        }

        public Criteria andDeviceaddressLessThan(String value) {
            addCriterion("deviceAddress <", value, "deviceaddress");
            return (Criteria) this;
        }

        public Criteria andDeviceaddressLessThanOrEqualTo(String value) {
            addCriterion("deviceAddress <=", value, "deviceaddress");
            return (Criteria) this;
        }

        public Criteria andDeviceaddressLike(String value) {
            addCriterion("deviceAddress like", value, "deviceaddress");
            return (Criteria) this;
        }

        public Criteria andDeviceaddressNotLike(String value) {
            addCriterion("deviceAddress not like", value, "deviceaddress");
            return (Criteria) this;
        }

        public Criteria andDeviceaddressIn(List<String> values) {
            addCriterion("deviceAddress in", values, "deviceaddress");
            return (Criteria) this;
        }

        public Criteria andDeviceaddressNotIn(List<String> values) {
            addCriterion("deviceAddress not in", values, "deviceaddress");
            return (Criteria) this;
        }

        public Criteria andDeviceaddressBetween(String value1, String value2) {
            addCriterion("deviceAddress between", value1, value2, "deviceaddress");
            return (Criteria) this;
        }

        public Criteria andDeviceaddressNotBetween(String value1, String value2) {
            addCriterion("deviceAddress not between", value1, value2, "deviceaddress");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeIsNull() {
            addCriterion("alarmType is null");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeIsNotNull() {
            addCriterion("alarmType is not null");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeEqualTo(String value) {
            addCriterion("alarmType =", value, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeNotEqualTo(String value) {
            addCriterion("alarmType <>", value, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeGreaterThan(String value) {
            addCriterion("alarmType >", value, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeGreaterThanOrEqualTo(String value) {
            addCriterion("alarmType >=", value, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeLessThan(String value) {
            addCriterion("alarmType <", value, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeLessThanOrEqualTo(String value) {
            addCriterion("alarmType <=", value, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeLike(String value) {
            addCriterion("alarmType like", value, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeNotLike(String value) {
            addCriterion("alarmType not like", value, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeIn(List<String> values) {
            addCriterion("alarmType in", values, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeNotIn(List<String> values) {
            addCriterion("alarmType not in", values, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeBetween(String value1, String value2) {
            addCriterion("alarmType between", value1, value2, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeNotBetween(String value1, String value2) {
            addCriterion("alarmType not between", value1, value2, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmlevelIsNull() {
            addCriterion("alarmLevel is null");
            return (Criteria) this;
        }

        public Criteria andAlarmlevelIsNotNull() {
            addCriterion("alarmLevel is not null");
            return (Criteria) this;
        }

        public Criteria andAlarmlevelEqualTo(String value) {
            addCriterion("alarmLevel =", value, "alarmlevel");
            return (Criteria) this;
        }

        public Criteria andAlarmlevelNotEqualTo(String value) {
            addCriterion("alarmLevel <>", value, "alarmlevel");
            return (Criteria) this;
        }

        public Criteria andAlarmlevelGreaterThan(String value) {
            addCriterion("alarmLevel >", value, "alarmlevel");
            return (Criteria) this;
        }

        public Criteria andAlarmlevelGreaterThanOrEqualTo(String value) {
            addCriterion("alarmLevel >=", value, "alarmlevel");
            return (Criteria) this;
        }

        public Criteria andAlarmlevelLessThan(String value) {
            addCriterion("alarmLevel <", value, "alarmlevel");
            return (Criteria) this;
        }

        public Criteria andAlarmlevelLessThanOrEqualTo(String value) {
            addCriterion("alarmLevel <=", value, "alarmlevel");
            return (Criteria) this;
        }

        public Criteria andAlarmlevelLike(String value) {
            addCriterion("alarmLevel like", value, "alarmlevel");
            return (Criteria) this;
        }

        public Criteria andAlarmlevelNotLike(String value) {
            addCriterion("alarmLevel not like", value, "alarmlevel");
            return (Criteria) this;
        }

        public Criteria andAlarmlevelIn(List<String> values) {
            addCriterion("alarmLevel in", values, "alarmlevel");
            return (Criteria) this;
        }

        public Criteria andAlarmlevelNotIn(List<String> values) {
            addCriterion("alarmLevel not in", values, "alarmlevel");
            return (Criteria) this;
        }

        public Criteria andAlarmlevelBetween(String value1, String value2) {
            addCriterion("alarmLevel between", value1, value2, "alarmlevel");
            return (Criteria) this;
        }

        public Criteria andAlarmlevelNotBetween(String value1, String value2) {
            addCriterion("alarmLevel not between", value1, value2, "alarmlevel");
            return (Criteria) this;
        }

        public Criteria andAlarmcontentIsNull() {
            addCriterion("alarmContent is null");
            return (Criteria) this;
        }

        public Criteria andAlarmcontentIsNotNull() {
            addCriterion("alarmContent is not null");
            return (Criteria) this;
        }

        public Criteria andAlarmcontentEqualTo(String value) {
            addCriterion("alarmContent =", value, "alarmcontent");
            return (Criteria) this;
        }

        public Criteria andAlarmcontentNotEqualTo(String value) {
            addCriterion("alarmContent <>", value, "alarmcontent");
            return (Criteria) this;
        }

        public Criteria andAlarmcontentGreaterThan(String value) {
            addCriterion("alarmContent >", value, "alarmcontent");
            return (Criteria) this;
        }

        public Criteria andAlarmcontentGreaterThanOrEqualTo(String value) {
            addCriterion("alarmContent >=", value, "alarmcontent");
            return (Criteria) this;
        }

        public Criteria andAlarmcontentLessThan(String value) {
            addCriterion("alarmContent <", value, "alarmcontent");
            return (Criteria) this;
        }

        public Criteria andAlarmcontentLessThanOrEqualTo(String value) {
            addCriterion("alarmContent <=", value, "alarmcontent");
            return (Criteria) this;
        }

        public Criteria andAlarmcontentLike(String value) {
            addCriterion("alarmContent like", value, "alarmcontent");
            return (Criteria) this;
        }

        public Criteria andAlarmcontentNotLike(String value) {
            addCriterion("alarmContent not like", value, "alarmcontent");
            return (Criteria) this;
        }

        public Criteria andAlarmcontentIn(List<String> values) {
            addCriterion("alarmContent in", values, "alarmcontent");
            return (Criteria) this;
        }

        public Criteria andAlarmcontentNotIn(List<String> values) {
            addCriterion("alarmContent not in", values, "alarmcontent");
            return (Criteria) this;
        }

        public Criteria andAlarmcontentBetween(String value1, String value2) {
            addCriterion("alarmContent between", value1, value2, "alarmcontent");
            return (Criteria) this;
        }

        public Criteria andAlarmcontentNotBetween(String value1, String value2) {
            addCriterion("alarmContent not between", value1, value2, "alarmcontent");
            return (Criteria) this;
        }

        public Criteria andAlarmtimeIsNull() {
            addCriterion("alarmTime is null");
            return (Criteria) this;
        }

        public Criteria andAlarmtimeIsNotNull() {
            addCriterion("alarmTime is not null");
            return (Criteria) this;
        }

        public Criteria andAlarmtimeEqualTo(Date value) {
            addCriterion("alarmTime =", value, "alarmtime");
            return (Criteria) this;
        }

        public Criteria andAlarmtimeNotEqualTo(Date value) {
            addCriterion("alarmTime <>", value, "alarmtime");
            return (Criteria) this;
        }

        public Criteria andAlarmtimeGreaterThan(Date value) {
            addCriterion("alarmTime >", value, "alarmtime");
            return (Criteria) this;
        }

        public Criteria andAlarmtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("alarmTime >=", value, "alarmtime");
            return (Criteria) this;
        }

        public Criteria andAlarmtimeLessThan(Date value) {
            addCriterion("alarmTime <", value, "alarmtime");
            return (Criteria) this;
        }

        public Criteria andAlarmtimeLessThanOrEqualTo(Date value) {
            addCriterion("alarmTime <=", value, "alarmtime");
            return (Criteria) this;
        }

        public Criteria andAlarmtimeIn(List<Date> values) {
            addCriterion("alarmTime in", values, "alarmtime");
            return (Criteria) this;
        }

        public Criteria andAlarmtimeNotIn(List<Date> values) {
            addCriterion("alarmTime not in", values, "alarmtime");
            return (Criteria) this;
        }

        public Criteria andAlarmtimeBetween(Date value1, Date value2) {
            addCriterion("alarmTime between", value1, value2, "alarmtime");
            return (Criteria) this;
        }

        public Criteria andAlarmtimeNotBetween(Date value1, Date value2) {
            addCriterion("alarmTime not between", value1, value2, "alarmtime");
            return (Criteria) this;
        }

        public Criteria andOrderstatusIsNull() {
            addCriterion("orderStatus is null");
            return (Criteria) this;
        }

        public Criteria andOrderstatusIsNotNull() {
            addCriterion("orderStatus is not null");
            return (Criteria) this;
        }

        public Criteria andOrderstatusEqualTo(String value) {
            addCriterion("orderStatus =", value, "orderstatus");
            return (Criteria) this;
        }

        public Criteria andOrderstatusNotEqualTo(String value) {
            addCriterion("orderStatus <>", value, "orderstatus");
            return (Criteria) this;
        }

        public Criteria andOrderstatusGreaterThan(String value) {
            addCriterion("orderStatus >", value, "orderstatus");
            return (Criteria) this;
        }

        public Criteria andOrderstatusGreaterThanOrEqualTo(String value) {
            addCriterion("orderStatus >=", value, "orderstatus");
            return (Criteria) this;
        }

        public Criteria andOrderstatusLessThan(String value) {
            addCriterion("orderStatus <", value, "orderstatus");
            return (Criteria) this;
        }

        public Criteria andOrderstatusLessThanOrEqualTo(String value) {
            addCriterion("orderStatus <=", value, "orderstatus");
            return (Criteria) this;
        }

        public Criteria andOrderstatusLike(String value) {
            addCriterion("orderStatus like", value, "orderstatus");
            return (Criteria) this;
        }

        public Criteria andOrderstatusNotLike(String value) {
            addCriterion("orderStatus not like", value, "orderstatus");
            return (Criteria) this;
        }

        public Criteria andOrderstatusIn(List<String> values) {
            addCriterion("orderStatus in", values, "orderstatus");
            return (Criteria) this;
        }

        public Criteria andOrderstatusNotIn(List<String> values) {
            addCriterion("orderStatus not in", values, "orderstatus");
            return (Criteria) this;
        }

        public Criteria andOrderstatusBetween(String value1, String value2) {
            addCriterion("orderStatus between", value1, value2, "orderstatus");
            return (Criteria) this;
        }

        public Criteria andOrderstatusNotBetween(String value1, String value2) {
            addCriterion("orderStatus not between", value1, value2, "orderstatus");
            return (Criteria) this;
        }

        public Criteria andOrderidIsNull() {
            addCriterion("orderId is null");
            return (Criteria) this;
        }

        public Criteria andOrderidIsNotNull() {
            addCriterion("orderId is not null");
            return (Criteria) this;
        }

        public Criteria andOrderidEqualTo(String value) {
            addCriterion("orderId =", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidNotEqualTo(String value) {
            addCriterion("orderId <>", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidGreaterThan(String value) {
            addCriterion("orderId >", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidGreaterThanOrEqualTo(String value) {
            addCriterion("orderId >=", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidLessThan(String value) {
            addCriterion("orderId <", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidLessThanOrEqualTo(String value) {
            addCriterion("orderId <=", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidLike(String value) {
            addCriterion("orderId like", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidNotLike(String value) {
            addCriterion("orderId not like", value, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidIn(List<String> values) {
            addCriterion("orderId in", values, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidNotIn(List<String> values) {
            addCriterion("orderId not in", values, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidBetween(String value1, String value2) {
            addCriterion("orderId between", value1, value2, "orderid");
            return (Criteria) this;
        }

        public Criteria andOrderidNotBetween(String value1, String value2) {
            addCriterion("orderId not between", value1, value2, "orderid");
            return (Criteria) this;
        }

        public Criteria andDevicetypeIsNull() {
            addCriterion("deviceType is null");
            return (Criteria) this;
        }

        public Criteria andDevicetypeIsNotNull() {
            addCriterion("deviceType is not null");
            return (Criteria) this;
        }

        public Criteria andDevicetypeEqualTo(String value) {
            addCriterion("deviceType =", value, "devicetype");
            return (Criteria) this;
        }

        public Criteria andDevicetypeNotEqualTo(String value) {
            addCriterion("deviceType <>", value, "devicetype");
            return (Criteria) this;
        }

        public Criteria andDevicetypeGreaterThan(String value) {
            addCriterion("deviceType >", value, "devicetype");
            return (Criteria) this;
        }

        public Criteria andDevicetypeGreaterThanOrEqualTo(String value) {
            addCriterion("deviceType >=", value, "devicetype");
            return (Criteria) this;
        }

        public Criteria andDevicetypeLessThan(String value) {
            addCriterion("deviceType <", value, "devicetype");
            return (Criteria) this;
        }

        public Criteria andDevicetypeLessThanOrEqualTo(String value) {
            addCriterion("deviceType <=", value, "devicetype");
            return (Criteria) this;
        }

        public Criteria andDevicetypeLike(String value) {
            addCriterion("deviceType like", value, "devicetype");
            return (Criteria) this;
        }

        public Criteria andDevicetypeNotLike(String value) {
            addCriterion("deviceType not like", value, "devicetype");
            return (Criteria) this;
        }

        public Criteria andDevicetypeIn(List<String> values) {
            addCriterion("deviceType in", values, "devicetype");
            return (Criteria) this;
        }

        public Criteria andDevicetypeNotIn(List<String> values) {
            addCriterion("deviceType not in", values, "devicetype");
            return (Criteria) this;
        }

        public Criteria andDevicetypeBetween(String value1, String value2) {
            addCriterion("deviceType between", value1, value2, "devicetype");
            return (Criteria) this;
        }

        public Criteria andDevicetypeNotBetween(String value1, String value2) {
            addCriterion("deviceType not between", value1, value2, "devicetype");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}